package com.linzm.behavioraltype.command02.order;

import com.linzm.behavioraltype.command02.Stock;

/**
 * @Author zimingl
 * @Date 2023/4/16 2:52
 * @Description: BuyStock
 */
public class BuyStock implements Order {
    private Stock abcStock;

    public BuyStock(Stock abcStock) {
        this.abcStock = abcStock;
    }

    public void execute() {
        abcStock.buy();
    }
}
